import BScroll from "better-scroll";

let betterScrlooHorizontal = function(that, wrapper, content, num, itemWidth){
    content.style.width = num * itemWidth + "rem";
    that.$nextTick(() => {
        that.scroll = new BScroll(wrapper, {
            scrollX:true,
            scrollY:false,
            startX:0,
            click:true
        });
    });
}

export { betterScrlooHorizontal };